﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="writer.aspx.cs" Inherits="Wedn.Web.UI.Admin.Include.Writer" %>

<%--<input id="page-title" type="hidden" value="撰写新文章" />--%>
<%--<link type="text/css" href="handler/load-styles.ashx?load=writer" rel="stylesheet" />--%>
<link type="text/css" href="resource/css/writer.css" rel="stylesheet" />
<script type="text/javascript" src="handler/load-scripts.ashx?dir=js&load=ui.core,ui.widget,ui.mouse,ui.sortable,jquery.datepicker,ajax-post&ver=1.0"></script>
<div id="screen-meta">
    <div id="screen-meta-option"></div>
    <div id="screen-meta-link">
        <div id="contextual-help-link-wrap">
            <a id="contextual-help-link" class="show-settings">帮助</a>
        </div>
        <div id="screen-options-link-wrap">
            <a id="show-settings-link" class="show-settings">显示选项</a>
        </div>
    </div>
</div>
<div class="hd-title">
    <h1 class="post">撰写新文章</h1>
</div>
<div id="message">
</div>
<!--编辑主体-->
<div class="post-body">
    <div class="main">
        <!--标题框开始-->
        <div class="title">
            <label for="title" class="text-tip">在此键入标题</label>
            <input id="post_title" type="text" size="30" autocomplete="off" />
            <input id="post_type" type="hidden" value="0" />
        </div>
        <!--标题框结束-->
        <div class="inside">
            <!--固定链接编辑框-->
            <div class="edit-slug-box">
                <strong>固定链接：</strong>
                <span id="permalink">http://www.wedn.net/post/<span id="edit-slug-box" title="临时固定链接，点击可更改这部分。">permalink</span><input id="post_slug" style="display: none;" />.html <a id="edit-slug-button" class="button button-small">编辑</a></span>
                <p>Tips: 默认Slug为文章标题, 建议修改为英文(可能有部分主机不支持中文Slug)</p>
            </div>
            <!--固定链接编辑框结束-->
        </div>
        <div class="media-buttons">
            <a class="button add_media" title="添加媒体">添加媒体</a>
        </div>
        <div id="editor">
            <blog:editor FormName="post_content" Width="100%" Height="100%" runat="server" />
            <p id="pub-log"></p>
        </div>
    </div>
    <!--边栏小工具-->
    <div class="container-1">
        <div id="side-sortables" class="meta-box-sortables ui-sortable">
            <div id="public-action" class="postbox ">
                <h3 class="hndle"><span>发布</span></h3>
                <div class="showdiv" title="点击以切换">
                    <br />
                </div>
                <div class="inside">
                    <ul>
                        <li class="misc-pub-section">
                            <div class="save-action">
                                <input id="publish-draft" type="submit" value="保存草稿" class="button" />
                                <span class="spinner"></span>
                            </div>
                            <div class="preview-action">
                                <input id="preview-btn" type="button" value="预览" class="button" />
                            </div>
                        </li>
                        <li class="misc-pub-section">
                            <label>状态：</label>
                            <b id="post-status-show">公开发布</b>
                            <a id="show-status" href="javascript:;">编辑</a>
                            <div class="option-info">
                                <select id="post_status">
                                    <option selected="selected" value="0">公开发布</option>
                                    <option value="top">置顶发布</option>
                                    <option value="1">密码保护</option>
                                    <option value="2">私密</option>
                                    <option value="4">草稿</option>
                                </select>
                                <span class="post-password-span">
                                    <label for="post_password">密码：</label>
                                    <input type="text" id="post_password" size="16" autocomplete="off" />
                                </span>
                                <br />
                                <a id="hide-status" href="javascript:;" class="button">确定</a>
                                <a href="javascript:;" class="hide">取消</a>
                            </div>
                        </li>
                        <li class="misc-pub-section">
                            <span class="timestamp"></span>
                            <b id="timestamp">立即</b>发布
                        <a id="show-pubdate" href="javascript:;">编辑</a>
                            <div class="option-info">
                                <p>
                                    <label for="post_pubdate">发布时间</label>
                                    <input id="post_pubdate" type="text" readonly="readonly" />
                                </p>
                                <a id="hide-pubdate" href="javascript:;" class="button">确定</a>
                                <a href="javascript:;" class="hide">取消</a>
                            </div>
                        </li>
                        <li class="misc-pub-section-last">
                            <div class="delete-action">
                                <a id="move-recycle" href="javascript:;">移至回收站</a>
                            </div>
                            <div class="publishing-action">
                                <span class="spinner"></span>
                                <input id="btn-publish" type="submit" class="button button-primary button-large" value="发布" accesskey="p" />
                            </div>
                        </li>
                    </ul>
                </div>
            </div>
            <div id="category" class="postbox ">
                <h3 class="hndle"><span>分类目录</span></h3>
                <div class="showdiv" title="点击以切换">
                    <br />
                </div>
                <div class="inside">
                    <div class="misc-pub-section">
                        <fieldset>
                            <legend>所有分类目录</legend>
                            <ul id="category-list">
                            </ul>
                            <input id="post_category" type="hidden" name="post_category" />
                        </fieldset>
                    </div>
                    <div class="misc-pub-section-last">
                        <a href="javascript:;">+添加新目录</a>
                        <p class="category-add">
                            <label class="screen-reader-text" for="category-add">添加新分类目录</label>
                            <input type="text" name="newcategory" id="category-add">
                            <label class="screen-reader-text" for="newcategory=parent">父级分类目录：</label>
                            <select id="newcategory-parent">
                                <option value="-1">— 父级分类目录 —</option>
                                <option class="level-0" value="1">未分类</option>
                            </select>
                            <input type="button" id="category-add-submit" class="button" value="添加新分类目录">
                        </p>
                    </div>
                </div>
            </div>
            <div id="tag" class="postbox ">
                <h3 class="hndle"><span>标签</span></h3>
                <div class="showdiv" title="点击以切换">
                    <br />
                </div>
                <div class="inside">
                    <div class="misc-pub-section">
                        <label class="screen-reader-text" for="post_tag">添加新标签</label>
                        <input id="txtTagAdd" type="text" name="post_tag" size="16" />
                        <input id="post_tag" type="hidden" name="post_tag" />
                        <input id="btnTagAdd" type="button" class="button" value="添加" />
                        <p>多个标签请用英文逗号（,）分开</p>
                        <p id="tagchecklist"></p>
                    </div>
                    <div class="misc-pub-section-last">
                        <a id="btnLoadTagList" class="button">已有标签中选择</a>
                        <p id="taglist" style="display: none;">
                        </p>
                    </div>
                </div>
            </div>
            <div id="auther" class="postbox ">
                <h3 class="hndle"><span>作者</span></h3>
                <div class="showdiv" title="点击以切换">
                    <br />
                </div>
                <div class="inside">
                    <div class="misc-pub-section-last">
                        <label class="screen-reader-text" for="post_author_id">作者</label>
                        <select id="post_author_id">
                            <option value="1" selected="selected">iceStone</option>
                        </select>
                    </div>
                </div>
            </div>
            <div id="comment" class="postbox ">
                <h3 class="hndle"><span>讨论</span></h3>
                <div class="showdiv" title="点击以切换">
                    <br />
                </div>
                <div class="inside">
                    <div class="misc-pub-section">
                        <label for="post_comment_status">评论</label>
                        <select id="post_comment_status">
                            <option value="0" selected="selected">接受任何人评论</option>
                            <option value="1">仅注册用户可评论</option>
                            <option value="2">拒绝任何人评论</option>
                        </select>
                    </div>
                    <div class="misc-pub-section-last">
                        <label for="post_ping_status">Ping</label>
                        <select id="post_ping_status">
                            <option value="0" selected="selected">Open</option>
                            <option value="1">Just Me</option>
                            <option value="2">Close</option>
                        </select>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--边栏小工具结束-->
    <!--底部小工具-->
    <div class="container-2">
        <div id="normal-sortables" class="meta-box-sortables ui-sortable">
            <div id="excerpt" class="postbox ">
                <h3 class="hndle"><span>摘要</span></h3>
                <div class="showdiv" title="点击以切换">
                    <br />
                </div>
                <div class="inside">
                    <label class="screen-reader-text" for="post_excerpt">摘要</label>
                    <textarea rows="1" cols="40" id="post_excerpt"></textarea>
                    <p>摘要是您可以手动添加的内容概要，一些主题会用到这些文字。<a href="javascript:;" target="_blank">了解关于人工摘要的更多信息。</a></p>
                </div>
            </div>
            <div id="template" class="postbox ">
                <h3 class="hndle"><span>文章显示模版</span></h3>
                <div class="showdiv" title="点击以切换">
                    <br />
                </div>
                <div class="inside">
                    <label class="screen-reader-text" for="post_template">文章显示模版</label>
                    <select id="post_template">
                        <option value="post" selected="selected">默认</option>
                    </select>
                    <p>Tips: 可以自定义模版噢!</p>
                </div>
            </div>
        </div>
        <div id="advanced-sortables" class="meta-box-sortables ui-sortable"></div>
    </div>
    <!--底部小工具结束-->
</div>
<!--编辑主体结束-->
